<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>let和const的认识</title>
</head>
<body>
<script>
    //变量穿透问题
    for (var i = 0; i < 5; i++) {
        console.log(i);
    }
    console.log(i);

    for (let m = 0; m < 5; i++) {
        console.log(m);
    }
    //TODO 没有报错，但是会无限自增输出
    console.log(m);

    //let var const
</script>
</body>
</html>
